home *** CD-ROM | disk | FTP | other *** search
/ New Perspectives on Computer Concepts / New Perspectives on Computer Concepts.iso / np2010c / page783.pag < prev    next >
Portable Network Graphic  |  2008-10-02  |  89KB  |  817x1045  |  8-bit (256 colors)
Labels: bulletin board | cell phone | chat room | hakham | person | sky | table | vase
OCR: COMPUTER PROGRAMMING 7 1 5 Although it might seem obvious that round describes the shape of a pizza, the predicate cannot be omitted. In many cases, the predicate can drasti- cally change the meaning of a fact For example, the facts Figure 12-45 FIGURE 12-45 have the same arguments (joe, fish) but the predicates give the facts very The predicate can drastically different meanings change the meaning of fact hates (joe, fish) name joe, fish) playsca ragame (joe, fish) Joe hates fish Joe is the name ofa fish Joe plays card game called fish. For the pizza program, series of facts can be used to describe pizza: priceof (pizzal 10 sizeof pizzal 12 shapeof (pizzal square) Another set of similar facts can be used to describe a second pizza: priceof (pizza2 12) sizeof pizza2 14 shapeof (pizza2 roun ...